import 'package:built_collection/built_collection.dart';
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:website.core/core/application/blocs/app_navigator_bloc/models/page_models/account_page_model.dart';
import 'package:website.core/core/presentation/helpers/markdown_builder.dart';
import 'package:website.core/core/presentation/theme/theme.dart';
import 'package:website.core/core/presentation/widgets/app_button.dart';
import 'package:website.core/core/presentation/widgets/app_loader.dart';
import 'package:website.core/core/presentation/widgets/delayed_widget.dart';
import 'package:website.core/core/presentation/widgets/stateful_wloc.dart';
import 'package:website.core/core/presentation/widgets/wloc_builder.dart';
import 'package:website.home.account/injection_container.dart' as account_di;
import 'package:website.home.account/purchase_management_fragment/application/bloc.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/app_store_purchased_item_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/google_play_purchased_item_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/google_play_purchased_subscription_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/one_time_purchased_item_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/purchased_item_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/purchased_subscription_duration.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/purchased_subscription_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/web_purchased_item_model.dart';
import 'package:website.home.account/purchase_management_fragment/domain/entites/web_purchased_subscription_model.dart';
import 'package:website.home.account/purchase_management_fragment/presentation/localization/translation.dart';
import 'package:website.home.account/purchase_management_fragment/presentation/theme/theme.dart';

part 'view.dart';

part 'view_0_600.dart';

part 'view_600_900.dart';

part 'view_900_infinity.dart';

part 'widgets/divider.dart';

part 'widgets/tile_button.dart';

part 'wloc.dart';

part 'wloc_state.dart';

part 'wloc_state_factory.dart';

class PurchaseManagementFragment extends StatefulWidget {
  const PurchaseManagementFragment({
    required this.fragmentModel,
    required this.width,
    Key? key,
  }) : super(key: key);

  final PurchaseManagementAccountPageFragmentModel fragmentModel;
  final double width;

  @override
  State<PurchaseManagementFragment> createState() => _PurchaseManagementFragmentWloc();
}
